package com.gking.centerSystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 路由
 */
@Data
@TableName("sy_routes")
public class Routes implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键id
    @TableId
    private String id;

    //系统唯一编码
    @TableField(value = "systemCode")
    private String systemCode;

    //路由路径
    @TableField(value = "path")
    private String path;

    //路由名称
    @TableField(value = "name")
    private String name;

    //路由组件
    @TableField(value = "component")
    private String component;

    //路由组件路径
    @TableField(value = "componentPath")
    private String componentPath;

    //路由等级
    @TableField(value = "level")
    private Integer level;

    //父级id
    @TableField(value = "parentId")
    private String parentId;

    //分类id
    @TableField(value = "sortId")
    private String sortId;

    //路由是否启用
    @TableField(value = "enable")
    private Integer enable;

    //路由描述或者说是备注
    @TableField(value = "description")
    private String description;

    //路由是否为重定向路由
    @TableField(value = "isRedirect")
    private Integer isRedirect;

    // 是否对该路径进行导航设置  0是，1不是 （默认不是）
    @TableField(value = "isNavigation")
    private Integer isNavigation;

    //路由是否删除
    @TableField(value = "isDelete")
    private Integer isDelete;

    //路由创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //路由创建者id
    @TableField(value = "createUserId", fill = FieldFill.INSERT)
    private String createUserId;

    //路由更新时间
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    //路由更新者id
    @TableField(value = "updateUserId", fill = FieldFill.UPDATE)
    private String updateUserId;

    //路由删除时间
    @TableField(value = "deleteTime")
    private LocalDateTime deleteTime;

    //路由删除者id
    @TableField(value = "deleteUserId")
    private String deleteUserId;

}
